package com.lc.cms.dao;

import com.lc.cms.dto.DepartmentPermissionDto;
import com.lc.cms.model.DepartmentModel;
import org.springframework.stereotype.Repository;

@Repository
public interface IDepartmentDao {

    int create(DepartmentModel department);

    int update(DepartmentModel department);

    int delete(int departmentId);

    int deleteUserDepartmentByDepartmentId(int departmentId);

    int deleteDepartmentRoleByDepartmentId(int departmentId);

    int deleteDepartmentPermissionByDepartmentId(int departmentId);

    int createDepartmentPermission(DepartmentPermissionDto role);
}
